package me.pplay.playtalk.bean;

import java.io.Serializable;

import me.pplay.playtalk.protocol.TpFile;

public class ChattingRecord implements Serializable{
	public int id;
	public int skyid;
	public String name;
	public String icon;
	public String content; //  如果是资源文件--文件缩略图(如果有)所在服务器的路径)
	public String time;
	public int progress = 0;
	public boolean isDownd = false;
	public int filelength	= 0;
	public String fname; //文件名
	public String fpath;//文件所在服务器的路径
	public int server_id; 
	public TpFile tpFile;
	/**
	 * type 0:msg 1:图片  2：视频  3：语音
	 */
	public String type;
	
	public ChattingRecord(){}
	public ChattingRecord(int skyid, String name, String icon, String type, String content, String time){
		this.skyid		= skyid;
		this.name		= name;
		this.icon		= icon;
		this.type		= type;
		this.content	= content;
		this.time		= time;
	}
	public ChattingRecord(int skyid, String name, String icon, String type, String content, String time, int filelength, String fname, String fpath, int server_id){
		this.skyid		= skyid;
		this.name		= name;
		this.icon		= icon;
		this.type		= type;
		this.content	= content;
		this.time		= time;
		this.filelength	= filelength;
		this.fname		= fname;
		this.fpath		= fpath;
		this.server_id	= server_id;
	}
	
}
